package com.zhangh.summer.admin.controller.api;

import com.zhangh.summer.admin.biz.org.OrgBiz;
import com.zhangh.summer.admin.model.bo.OrgBO;
import com.zhangh.summer.admin.model.bo.OrgQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: TODO
 * @author: zhanghui
 * @create: 2021-10-15 21:12
 **/
@RestController
@RequestMapping(value = "/orgApi",method = RequestMethod.POST)
public class OrgApiController {

    @Autowired
    private OrgBiz orgBiz;

    @RequestMapping("/dataList")
    public List<OrgBO>  dataList(@RequestBody OrgQuery query) {
        List<OrgBO> orgList=this.orgBiz.getOrgList(query);
        return orgList;
    }
}
